<include file="Common/header" />
<title>会员列表</title>
</head>
<body>
<nav class="breadcrumb">
	<i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 会员管理
	<span class="c-gray en">&gt;</span> 续约提醒
	<a class="btn btn-success radius r mr-20" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" >
		<i class="Hui-iconfont">&#xe68f;</i>
	</a>
</nav>
<div class="pd-20">
	<div class="panel panel-primary">
		<div class="panel-header">按条件查询</div> 
		<div class="panel-body">
			开始时间：
			<span class="select-box radius" style="width: 200px;">
				<input type="text" name="btime" id="btime" class="select layer-date radius time" value="{$btime}" />
			</span>
			结束时间：
			<span class="select-box radius" style="width: 200px;">
				<input type="text" name="etime" id="etime" class="select layer-date radius time" value="{$etime}" />
			</span>
			<a href="javascript:;" class="btn btn-success radius querys"><i class="Hui-iconfont">&#xe709;</i> 查询</a> 
		</div>
	</div>
</div>
<div class="pd-20">
	<div class="cl pd-5 bg-1 bk-gray"> 
		<!--
		<span class="l"> 
			<a class="btn btn-danger radius" href="javascript:;"><i class="Hui-iconfont">&#xe644;</i> 数据导出</a>
		</span>-->
		<span class="r">共有数据：<strong>{$count}</strong> 条</span>
	</div>
	<div class="dataTables_wrapper no-footer" id="ajaxDiv">
		<include file="Member/renew_list" />
	</div>
</div>

<script type="text/javascript">
	$(document).ready(function(){
		$(".time").on('click', function(){
			laydate({istime: true, format: 'YYYY-MM-DD'});
		});
		//按条件查询
		$(".querys").on('click', function(){
			var load = layer.load(2);
			var where = {};
				where.btime = $("#btime").val();
				where.etime = $("#etime").val();
				where.ajax = 1;
			$.get('renew.html', where, function(data){
				layer.close(load);
				$("#ajaxDiv").html(data);
			});
		});
		
		$(".btn-danger").on('click', function(){
			layer.msg('确认模板中', {icon: 5, time: 2000});
		});
	});
</script>
</body>
</html>